package com.netrust.quarz.common.enums;

public enum OperatorEnums {
	Operator_dx_zwww("电信政务外网",2),
	Operator_yd_zwww("移动政务外网",1),
	Operator_yd_hlw("移动互联网",3),
	Operator_dx_hlw("电信互联网",4);
	
	
	// 成员变量  
    private String name;  
    private int index;  
    
    // 构造方法  
    private OperatorEnums(String name, int index) {  
        this.name = name;  
        this.index = index;  
    }  

    
    // get set 方法  
    public String getName() {  
        return name;  
    }  
    public void setName(String name) {  
        this.name = name;  
    }  
    public int getIndex() {  
        return index;  
    }  
    public void setIndex(int index) {  
        this.index = index;  
    }
    
    public static OperatorEnums fromTypeName(String typeName) {  
        for (OperatorEnums type : OperatorEnums.values()) {  
            if (type.name.equals(typeName)) {  
                return type;  
            }  
        }  
        return null;  
    } 
}
